
local string_utils = require("mvc.utils.string_utils");

local RouteHandler = require("mvc.route_handler")

local route_handler = RouteHandler:new("config.router");

local router = route_handler:get_router("/user/add");

ngx.say("router == nil", router == nil);


ngx.say(router.namespace);
ngx.say(router.action);


local testuri = "/user/add";

local array = string_utils.split(testuri, "/");
ngx.say("/" .. array[#array])


